package com.agrm.rabc.mapper;

import com.agrm.model.rabc.dto.GroupRoleMapping;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupRoleMappingDao extends BaseMapper<GroupRoleMapping> {
    default List<GroupRoleMapping> findAll(GroupRoleMapping grm) {
        LambdaQueryWrapper<GroupRoleMapping> qw = Wrappers.lambdaQuery(grm);
        return selectList(qw);
    }
}
